import java.io.FileReader;
import java.io.IOException;

public class homework3 {
    public static void main(String[] args) {
        try ( FileReader r=new FileReader("C:\\1.1\\3.txt");){

            char[] chars=new char[1024];
            int read=1;
            while ((read=r.read(chars))!=-1){
                System.out.println(new String(chars,0,read));
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
